package com.lingyuan.common.core.domain.vo.pms;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName：ProductSkuVo
 * @Author: LeiHao
 * @Date: 2024/9/18 12:27
 * @Description: 商品实体封装
 */
@Data
public class ProductSkuVo {
    /**
     * skuId
     */
    private Long skuId;
    /**
     * spuId
     */
    private Long spuId;
    /**
     * sku名称
     */
    private String skuName;
    /**
     * sku介绍描述
     */
    private String skuDesc;
    /**
     * 所属分类id
     */
    private Long catalogId;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 默认图片
     */
    private String skuDefaultImg;
    /**
     * 标题
     */
    private String skuTitle;
    /**
     * 副标题
     */
    private String skuSubtitle;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 销量
     */
    private Integer saleCount;
    /**
     * sku属性
     */
    private List<Attr> attrs;

    @Data
    public static class Attr{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
